﻿<phone:PhoneApplicationPage 
    x:Class="STEM123.MainSearchPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0">
            <TextBlock x:Name="txtBlockAppTitle" Text="STEM123" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="txtBlockWelcome" Text="Welcome" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1">
            <TextBlock Name="txtSearchGuidance" Text="Looking for answers related to Science, Technology, Engineering or Math (STEM)? Enter name of the term, idea or concept below." TextWrapping="Wrap" Height="136" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="24" Margin="20,72,20,0" />
            <TextBox Name="txtBoxSearchTerm" Height="72" HorizontalAlignment="Center" Text="" VerticalAlignment="Top" Width="300" Margin="0,200,0,0" MaxLength="30" />
            <Button Name="btnSearch" Height="72" HorizontalAlignment="Center" Content="Search" VerticalAlignment="Top" Width="160" Margin="0,260,0,0" Click="btnSearch_Click" />
            <TextBlock Name="txtBoxContentGuidance" Text="Want to explain some concept, idea; or want to answer some questions? Great! Explain and share your knowledge." TextWrapping="Wrap" Height="104" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="20,0,11,113" FontSize="24" Width="449" />
            <Button Content="Explain" Height="72" HorizontalAlignment="Center" Name="btnExplain" VerticalAlignment="Bottom" Width="160" Click="btnExplain_Click" Margin="0,0,0,43" />
        </Grid>
        <Grid.Background>
            <ImageBrush ImageSource="/STEM123;component/STEMBackground.png" Stretch="None" />
        </Grid.Background>
    </Grid>
</phone:PhoneApplicationPage>